package pearson.automation.forms.note;

import org.openqa.selenium.By;

import framework.elements.Button;
import framework.elements.Label;
import framework.BaseForm;

public class NoteDeleteDialog extends BaseForm {
    public static Label header = new Label(By.xpath("//h2[contains(.,'Delete note')]"), "Delete label");
    
    public Button yes = new Button(By.linkText("Yes"), "Yes");
    public Button no = new Button(By.linkText("No"),  "No");
    
    public NoteDeleteDialog() {
        super(header.getLocator(), "Delete note");
    }

    public void clickYes() {
        yes.clickAndWait();
    }
    
    public void clickNo() {
        no.clickAndWait();
    }
}
